package com.dly.blog.provider;

import com.dly.blog.domain.Role;
import com.dly.blog.mapper.RoleMapper;
import com.dly.blog.provider.user.RoleProvider;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/12 23:34
 */
@Component
@AllArgsConstructor
public class RoleProviderImpl implements RoleProvider {

    private final RoleMapper roleMapper;

    @Override
    public List<Role> searchAllByUserId(String userId) {
        return roleMapper.searchAllByUserId(userId);
    }

}
